New Method for Odd Magic Squares

Interchangeable Odd Magic Squares

On page 226 of the book entitled "The Neuroscience of You" Copyright © 2022 by Cantel Prat PhD provides a picture puzzle to the reader in which the goal is to select the best answer from a set of four options. The completed picture consists of a matrix of nine 1-3 vertical or horizontal markings which has the appearance of a 3×3 non-magic square; non-magic because the square consists of the numbers 1-3 repeated three times. For example, the simplest known 3×3 non-magic square A with sequential numbers 1,2,3 can be constructed using the StairCase (or Loubère) method on a 3×3 grid:

A
2 1 3
3 2 1
132
B
3 1 2
1 2 3
231

We can numerically depict the stick version. i.e., the square matrix of vertical and horizontal markings by mixing (sort of like hybridizing) A with B, a square having identical numbers in each cell of the same right diagonals. The original Cantel Prat design was modified (including placement of markings) so that we could focus just on one type of marking, the "sticks".

Stick Version
number of sticks

This stick version may be represented in tuple format as in square C by combining numbers from the same cells of square A and square B into a tuple (v,h) where v and h are the number of vertical and horizontal stick markings, respectively.

C
(2,3) (1,1) (3,2)
(3,1) (2,2) (1,3)
(1,2)(3,3)(2,1)
D1
23 11 32
31 22 13
123321
D2
32 11 23
13 22 31
213312

Square C has the additional property that when the comma and parentheses from each of the tuples are removed, a magic square D1 is produced where the magic sums of all the vertical, horizontal and left diagonal cells equal 66. In addition, if the numbers in D1 are reversed the square D2 is formed where columns 1 and 3 have been interchanged so that D1 = D2. However, this is not the property of just the 3×3 squares but is a property that can be applied to all the odd squares using not only the Staircase but also the Knight (as in chess) method as well.

Larger Odd Squares

Both the Staircase and Knight methods can be used to produce 5×5 squares where the knight move is chosen to be one cell to the right (r) or left (l) and two cells to the top (t) or down (d). The squares are constructed with a square similar to B consisting of numbers ranging from 1-5 with each number in the appropriate diagonal. To form E1, for example, we start with the 5×5 analog of B and start at the leftmost corner bottom cell (in yellow) and fill in the diagonal with tuples starting at (1,3) and terminating at (5,3) (Square E1).

Beginning at (1,3) four (1r,2d) knight moves are used to enter all tuples starting with 1. After the last 1 is entered, the next move is blocked by the initial (1,3), and thus a break move back to the diagonal at position (2,3) is required in order to fill in all tuples starting with 2 (Square E2). Note that Square E2 is at a point where only a partial number of 2's have been added. E below depicts the completed square.

B5
4 51 23
512 34
123 4 5
234 51
345 12
E1 (r,d)
4 51 2(5,3)
512 (4,3)4
12(3,3) 4 5
2(2,3)4 51
(1,3)45 12
E2 (r,d)
4 5(2,1) (1,2)(5,3)
5(1,1)2 (4,3)4
12(3,3) (2,4) (1,5)
2(2,3)(1,4) 51
(1,3)45 12
...

Similarly the Staircase method can be used on B5, starting at the top central cell labeled 1 (in yellow) and the numbers beginning with 1 are added sequentially on the same diagonal. If the next position on the diagonal is blocked and a break is required, viz., a move down one cell to the next empty cell where the number count is restarted at 1. Note that diagonal containing 2's is only partially filled. For the completed square, see F below.

B5
4 51 23
512 34
123 4 5
234 51
345 12
F Staircase
45(1,1) 23
5(5,1)(2,2) 34
(4,1)(1,2)3 4 5
234 5(3,1)
345 (2,1)2
...

The four squares that would be formed consists of two sets of identical squares one of which (square F) is equivalent to the Staircase method. As can be seen only one configuration of sticks is present for each cell.

E (r,d) or (l,u)
(4,4) (3,5)(2,1) (1,2)(5,3)
(2,5)(1,1)(5,2) (4,3)(3,4)
(5,1)(4,2)(3,3) (2,4) (1,5)
(3,2)(2,3)(1,4) (5,5)(4,1)
(1,3)(5,4)(4,5) (3,1)(2,2)
F ((r,u) or (l,d) or Staircase
(2,4)(4,5)(1,1) (3,2)(5,3)
(3,5)(5,1)(2,2) (4,3)(1,4)
(4,1)(1,2)(3,3) (5,4)(2,5)
(5,2)(2,3)(4,4) (1,5)(3,1)
(1,3)(3,4)(5,5) (2,1)(4,2)

If we remove the commas and parentheses from the tuples the magic squares EM1 and FM1 with a magic sum of 165 are obtained.

EM1
44 35 21 12 53
25 11 52 43 34
514233 24 15
32 23 14 55 41
13 54 45 31 22
FM1
24 45 11 32 53
355122 43 14
411233 54 25
522344 15 31
133455 21 42

Reversing all the numbers in EM1 and FM1 produces squares EM2 and FM2 in which both squares are still magic having the magic sum of 165. This would have the effect of reversing the tuples in E and F and generating a different configuration of sticks, where an h becomes v and a v becomes h.

EM2
445312 2135
5211 25 34 43
152433 42 51
23 32 41 55 14
31 45 54 13 22
FM2
425411 2335
531522 3441
142133 4552
253244 5113
314355 1224

Note that EM1 and EM2 can also be classified as Staircase methods if we know beforehand where to place the initial number 11. In fact, the Staircase method uses variable Knight break moves depending on the position of the initial number 11, covered in Part I of General Methods and Rules of Staircase Squares, where the initial number is 1. For both EM2 and EM2 the break is calculated as (3,3), i.e. 3 cells right and 3 cells down.

Applying the above methods and employing the same Knight moves to the 7×7 squares we can skip the tuple intermediate and go directly to the magic squares GM and HM, having magic sums of 308. Note that given the squares below we can reform the tuples by adding commas between the centers of each number. Note that if interest is solely on the magic squares the tuple forming step may be omitted since its used mainly for the generation of the stick markings.

GM1 (r,d) or (l,u)
356627 511243 74
561741 72336425
773162 23541546
21521344 753667
427334 65265711
632455 16477132
144576 37612253
HM1 ((r,u) or (l,d) or Staircase
254667 11325374
365771 22436415
476112 33547526
51722344 651637
621334 55762741
732445 66173152
14355677 214263

And finally reversing all the numbers in GM1 and HM1 the result is GM2 and HM2 in which both squares are still magic having the magic sum of 308.

GM2 (r,d) or (l,u)
536672 152134 47
657114 27334652
771326 32455164
12253144 576376
243743 56627511
364255 61741723
415467 73162235
HM2 ((r,u) or (l,d) or Staircase
526476 11233547
637517 22344651
741621 33455762
15273244 566173
263143 55677214
374254 66711325
41536577 122436

Note that again as in Part I, GM1 and GM2 can also be classified as a Staircase method with variable Knight break moves of (6,2); 6 cells right followed by 2 cells down.

Go back to homepage.


Copyright © 2023 by Eddie N Gutierrez. E-Mail: enaguti1949@gmail.com